package com.kara.woodAgent.agent.tool;


import com.kara.woodAgent.agent.tool.provider.Tools;
import dev.langchain4j.agent.tool.Tool;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;


@Tools(groups = "time")
@Component
public class TimeTools {


    @Tool(name = "getCurrentTime", value = "获得当前时间")
    public static String getCurrentTime() {
        LocalDateTime now = LocalDateTime.now();
        return DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(now);
    }



}
